<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglib.jsp"%>
<%@page import="com.gfa4j.resource.ResourceManagerServer"%>
<%@page import="com.wef.common.util.CommonMessageDomain"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
		<%@include file="/styles/css_lib.jsp"%>
		<%@include file="/scripts/widgets/jquery-ui/css_lib.jsp"%>
		<%@include file="/scripts/widgets/jqgrid/css_lib.jsp"%>
		<link rel="stylesheet" type="text/css" href="${ctx}/pages/demo/demo.css" />				
		<%@include file="/pages/common/js_global.jsp"%>
		<%@include file="/scripts/sdk/js_lib.jsp"%>
		<%@include file="/scripts/config/js_lib.jsp" %>
		<%@include file="/scripts/utils/js_lib.jsp"%>
		<%@include file="/scripts/i18n/js_lib.jsp"%>
		<%@include file="/scripts/format/js_lib.jsp"%>
		<%@include file="/scripts/validate/js_lib.jsp"%>
		<%@include file="/scripts/widgets/jquery-ui/js_lib.jsp"%>
		<%@include file="/scripts/widgets/jqgrid/js_lib.jsp"%>
		<%@include file="/scripts/widgets/page-custom/js_lib.jsp"%>
		<%@include file="/scripts/widgets/datePicker/js_lib.jsp"%>
		<script type="text/javascript" src="${ctx}/pages/demo/demo.js"></script>
		<script type="text/javascript" src="${ctx}/pages/demo/components/date_util.js"></script>		
</head>

<body class="body">
<div id="Content_Show">
	<div class="Desc">
		功能:将当前日期以指定格式显示,如下: (<a href="#" id="aDiv1">YYYY-MM-DD HH:MI:SS格式源码</a>)&nbsp;(<a href="#" id="aDiv2">YYYY-MM-DD格式源码</a>)&nbsp;(<a href="#" id="aDiv3">YYYY-MM格式源码</a>)
	</div>
	<div id="div1" style="display: none;">
		var date;</br>
		date = $.DateUtils.getCurrentDateTimeString();</br>
		alert(date);
	</div>
	<div id="div2" style="display: none;">
		var date;</br>
		date = $.DateUtils.getCurrentDateString();</br>					
		alert(date);
	</div>
	<div id="div3" style="display: none;">
		var date;</br>
		date = $.DateUtils.getCurrentYearAndMonthString();</br>					
		alert(date);
	</div>
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul class="button_box">
			<li>
				<k:button styleId="displayCurrentDateTime" text="demo.Dateutils.formateCurrentDateTime" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
			<li>
				<k:button styleId="displayCurrentDate" text="demo.Dateutils.formateCurrentDate" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
			<li>
				<k:button styleId="displayCurrentYearAndMonth" text="demo.Dateutils.formateCurrentYearAndMonth" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
		</ul>
	</div>
	<div class="Desc">
		功能:将指定日期以指定格式显示,如下: (<a href="#" id="aDiv4">YYYY-MM-DD HH:MI:SS格式源码</a>)&nbsp;(<a href="#" id="aDiv5">YYYY-MM-DD格式源码</a>)&nbsp;(<a href="#" id="aDiv6">YYYY-MM格式源码</a>)
	</div>
	<div id="div4" style="display: none;">
		var date = new Date(2008,8,1,23,59,59);</br>
		var str;</br>
		str = $.DateUtils.getDateTimeString(date);</br>					
		alert(str);	
	</div>
	<div id="div5" style="display: none;">
		var date = new Date(2008,8,1,23,59,59);</br>
		var str;</br>
		str = $.DateUtils.getDateString(date);</br>					
		alert(str);	
	</div>
	<div id="div6" style="display: none;">
		var date = new Date(2008,8,1,23,59,59);</br>
		var str;</br>
		str = $.DateUtils.getYearAndMonthString(date);</br>					
		alert(str);	
	</div>
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul class="button_box">
			<li>
				<k:button styleId="displayDateTime" text="demo.Dateutils.formateDateTime" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
			<li>
				<k:button styleId="displayDate" text="demo.Dateutils.formateDate" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
			<li>
				<k:button styleId="displayYearAndMonth" text="demo.Dateutils.formateYearAndMonth" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
		</ul>
	</div>
</div>
</body>
</html>